#version 140

in vec4 color;
in vec2 texCoord;

uniform sampler2D diffuse;

void main()
{
  gl_FragColor = color * texture2D(diffuse, texCoord);
  if (gl_FragColor.a < 0.5)
    {
      discard;
    }
}
